/*
 * @(#)ResultProcessor.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.service;

import com.nhncorp.usf.core.call.Fault;
import com.nhncorp.usf.core.call.ReturnValue;

/**
 * @author Web Platform Development Team.
 */
public interface ResultProcessor {

    /**
     * Success.
     *
     * @param returnValue the return value
     * @param context     the context
     */
    public void success(ReturnValue returnValue, ServiceExecutionContext context);

    /**
     * Failure.
     *
     * @param fault   the fault
     * @param context the context
     * @throws Exception the exception
     */
    public void failure(Fault fault, ServiceExecutionContext context) throws Exception;
}
